function sleep(ms) {
  return new Promise(function (resolve, reject) {
    console.log("Promise")
    setTimeout(()=>{
      console.log("CCC");
      resolve("data");
      console.log("DDD");
    },ms);
  })
}
async function handle() {
  console.log("AAA");
  await sleep(3000).then(val=>{
    console.log(val)
  });
  console.log("BBB")
}
handle();
